package com.dao;

import com.pojo.Client;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface ClientMapper {
    @Insert("insert into client (name,sex,email,phone,birth) values (#{name}, #{sex},#{email}, #{phone},#{birth})")
    boolean insert(Client client);

//    @Update("update ")


    @Select("select * from client where email = #{email}")
    Client select(String email);

    @Select("select * from client")
    List<Client> getAllClient();
}
